package com.itheima.create;

/**
 */
public class ArrayDemo1 {
    public static void main(String[] args) {
        // 目标：静态初始化一个数组
        // 98.5 89 78.5
        // double[] scores = new double[]{98.5, 89, 78.5};
        double[] scores = {98.5, 89, 78.5};
        // double scores[] = {98.5, 89, 78.5};

        // 全蛋 二狗 西门
        // String[] names = new String[]{"全蛋", "二狗", "西门"};
        String[] names = {"全蛋", "二狗", "西门"};
        // String names[] = {"全蛋", "二狗", "西门"};

        // int[] ages = new int[]{12, 24, 36, 48};
        int[] ages = {12, 24, 36, 48};

        // 注意：直接输出数组名称不是输出数组的内容，说明数组名称中存储的是数组在内存中的地址：
        // [I@4c873330
        System.out.println(ages);
    }
}
